<?php
class CommonAction extends Action{
	protected $domain;		//域名


	public function _initialize(){
		$host	= explode('.',$_SERVER['HTTP_HOST']);
		$this->domain	= $host["0"];
	}
	public function index(){
		//$name	=
		echo $this->domain;
	}

}
?>